package com.consumer0.controller;

import com.consumer0.service.DemoService;
import com.jobs.common.RS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 测试信息
 * @author xxx
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/test")
    public String demo() {
        return RS.success(demoService.demo());
    }
}
